﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CVM.Data.Repositories.Base
{
    public interface IRepository
    {
        #region Add
        /// <summary>
        /// Store any Entity
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        void Add(Entities.DataEntityBase entity);
        #endregion

        #region Update
        #endregion

        #region Get
        /// <summary>
        /// Get all items without filters
        /// </summary>
        /// <returns></returns>
        IList<Data.Entities.DataEntityBase> GetAll();

        /// <summary>
        /// Get item by ID
        /// </summary>
        /// <returns></returns>
        Data.Entities.DataEntityBase Get(int ID);
        #endregion

        #region Delete
        /// <summary>
        /// Delete any Entity
        /// </summary>
        /// <param name="obj"></param>
        void Delete(int ID);
        #endregion
    }
}
